package acm.华中农业;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class H {
    public static void main(String[] args) throws IOException {
        BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
        String[] read = in.readLine().split(" ");
        int k=Integer.parseInt(read[0]);
        int t=Integer.parseInt(read[1]);
        double p=1-Double.parseDouble(read[2]);
        double res=(1-Math.pow(p,t))*k;
        System.out.println(String.format("%.4f",res));
    }
}
